Skip to main content

MinerApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
minerClaimMinerGetGET /miner/claim/{miner}Get Claim Miner Message
minerClaimPostPOST /miner/claimClaim Miner
minerSetInfoMinerPutPUT /miner/set-info/{miner}Set Miner Info
minerSuspendMinerPostPOST /miner/suspend/{miner}Suspend Miner
minerUnsuspendMinerPutPUT /miner/unsuspend/{miner}Unuspend Miner
publicMinersDealsMinerGetGET /public/miners/deals/{miner}Get all miners deals
publicMinersStatsMinerGetGET /public/miners/stats/{miner}Get miner stats

minerClaimMinerGet

ApiClaimMsgResponse minerClaimMinerGet(miner)

Get Claim Miner Message

This endpoint lets a user get the message in order to claim a miner

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
String miner = "miner_example"; // String | Miner claim message
try {
ApiClaimMsgResponse result = apiInstance.minerClaimMinerGet(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#minerClaimMinerGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringMiner claim message

Return type

ApiClaimMsgResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

minerClaimPost

ApiClaimResponse minerClaimPost(body)

Claim Miner

This endpoint lets a user claim a miner

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
MinerClaimMinerBody body = new MinerClaimMinerBody(); // MinerClaimMinerBody | Claim Miner Body
try {
ApiClaimResponse result = apiInstance.minerClaimPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#minerClaimPost");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
bodyMinerClaimMinerBodyClaim Miner Body

Return type

ApiClaimResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

minerSetInfoMinerPut

ApiEmptyResp minerSetInfoMinerPut(body, miner)

Set Miner Info

This endpoint lets a user set miner info.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
MinerMinerSetInfoParams body = new MinerMinerSetInfoParams(); // MinerMinerSetInfoParams | Miner set info params
String miner = "miner_example"; // String | Miner to set info for
try {
ApiEmptyResp result = apiInstance.minerSetInfoMinerPut(body, miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#minerSetInfoMinerPut");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
bodyMinerMinerSetInfoParamsMiner set info params
minerStringMiner to set info for

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

minerSuspendMinerPost

ApiEmptyResp minerSuspendMinerPost(body, miner)

Suspend Miner

This endpoint lets a user suspend a miner.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
MinerSuspendMinerBody body = new MinerSuspendMinerBody(); // MinerSuspendMinerBody | Suspend Miner Body
String miner = "miner_example"; // String | Miner to suspend
try {
ApiEmptyResp result = apiInstance.minerSuspendMinerPost(body, miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#minerSuspendMinerPost");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
bodyMinerSuspendMinerBodySuspend Miner Body
minerStringMiner to suspend

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

minerUnsuspendMinerPut

ApiEmptyResp minerUnsuspendMinerPut(miner)

Unuspend Miner

This endpoint lets a user unsuspend a miner.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
String miner = "miner_example"; // String | Miner to unsuspend
try {
ApiEmptyResp result = apiInstance.minerUnsuspendMinerPut(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#minerUnsuspendMinerPut");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringMiner to unsuspend

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

publicMinersDealsMinerGet

String publicMinersDealsMinerGet(miner, ignoreFailed)

Get all miners deals

This endpoint returns all miners deals

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
String miner = "miner_example"; // String | Filter by miner
String ignoreFailed = "ignoreFailed_example"; // String | Ignore Failed
try {
String result = apiInstance.publicMinersDealsMinerGet(miner, ignoreFailed);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#publicMinersDealsMinerGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner
ignoreFailedStringIgnore Failed[optional]

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

publicMinersStatsMinerGet

String publicMinersStatsMinerGet(miner)

Get miner stats

This endpoint returns miner stats

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
String miner = "miner_example"; // String | Filter by miner
try {
String result = apiInstance.publicMinersStatsMinerGet(miner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#publicMinersStatsMinerGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json